﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ServiceModel;
using System.ServiceModel.Web;
using ApiPrototype.Handlers;
using ApiPrototype.Models;

namespace ApiPrototype.APIs
{
    [ServiceContract]
    public class ExamenroosterApi
    {
        [WebGet, Authorization]
        public ApiResponse<List<SP_EXAMEN_ENTRY>> Get(int studentId, iphlEntities ctx)
        {
            var result = ctx.SP_GET_EXAMEN(studentId).ToList();
            return new ApiResponse<List<SP_EXAMEN_ENTRY>>(result);
        }
    }
}